Skip to main content

Refund Money

POST : http://<base_url>/digipay/v3/transaction/wallet_refund_money

This API is used to refund money to customer or merchant

BODY PARAMS:-

ParameterTypeDescriptionValue
charges_infoArrayit combines total_charges amount with the arrayList of chargesb9a4cbeeedd340509cb1ac628cae2973
initial_txn_idStringit is unique initial_transaction_id for which refund is going to be generatedbcdc063cf4844eea82e1c0e68a2360e8
txn_amountDoubletxn_amount used to perform wallet_topup of user100
txn_codestringunique txn_code for which wallet_topup has been doneCIB
debit_user_infoJsonit combines debit user currency_id,wallet_id,user_id of company admin ,user_type of company admin, payment_type of company admin and username
credit_user_infoJsonit combines credit user currency_id,wallet_id,user_id of company user ,user_type of company user, payment_type of company user and username
company_admin_user_infoArrayit combines company admin currency_id,wallet_id,user_id of company admin ,user_type of company admin, payment_type of company admin and username
payment_modeIntwhich mode of payment used to perform wallet_topup
txn_device_infoArrayit combines device_id
notestringa small note written at the time of wallet topupRefund
payment_responseArraypayment of data
card_infoArray
meta_dataArraymeta_data

HEADERS:-

ParameterTypedescriptionvalue
AuthorizationStringIt is a combination of type and token to authenticate user for the given tokenToken duik7309njdlkhdauhknksadhjkas986876sd873j
CompanyIDStringCompany_id is a unique primary id, that is represent company detail76bc712200ca444fa334f9e55e5fd7a8

Request Body:-

Request Example
curl --request POST \
--url http://192.168.1.102:8014/digipay/v3/transaction/wallet_refund_money \
--header 'Authorization: Token duik7309njdlkhdauhknksadhjkas986876sd873j' \
--header 'CompanyID: 7753ad6bd8cf48f5b1312fd21eb36588' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"initial_txn_id": "bcdc063cf4844eea82e1c0e68a2360e8",
"txn_amount": 100,
"txn_code": "MR / CR",
"payment_mode": 2,
"note": "Refund Money"
}
'

Response:-

Response 200(OK)

{
"success": 1,
"error": [],
"data": {
"message": "Money successfully refunded",
"transaction": {
"txn_id": "bcdc063cf4844eea82e1c0e68a2360e8",
"txn_number": "bcdc063cf4844eea82e1c0e68a2360e8",
"txn_status": 1
}
}
}
Response 400(BAD REQUEST)
{
"success": 0,
"error"": [1],
"data": {
"message": "BAD_REQUEST",
}
}

RESPONSES :-

Status CodeDescription
200OK
400BAD REQUEST
404NOT FOUND
500INTERNAL SERVER ERROR